From ace569b65f13526781200b479d506274637f1921 Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Thu, 8 Nov 2018 10:21:07 -0500 Subject: [PATCH] Check for existence of buffer in which-key--popup-showing-p Fixes #197 --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 09effbc7aa1..c62924da823 100644 --- a/which-key.el +++ b/which-key.el @@ -1111,7 +1111,8 @@ popup)." (delete-frame which-key--frame))) (defun which-key--popup-showing-p () - (window-live-p (get-buffer-window which-key--buffer))) + (and (bufferp which-key--buffer) + (window-live-p (get-buffer-window which-key--buffer)))) (defun which-key--show-popup (act-popup-dim) "Show the which-key buffer. -- 2.30.2